import { ApiProperty } from "@nestjs/swagger";

import { OutputListItemDto } from "../../outputs/dto/output-list-item.dto";
import { ProjectSummaryDto } from "./project-summary.dto";

export class ProjectDetailDto extends ProjectSummaryDto {
  @ApiProperty({ description: "是否处于启用状态" })
  isActive!: boolean;

  @ApiProperty({ description: "创建时间", example: "2025-09-01T02:15:00.000Z", required: false })
  createdAt?: string;

  @ApiProperty({ description: "更新时间", example: "2025-09-24T10:15:00.000Z", required: false })
  updatedAt?: string;

  @ApiProperty({ type: [OutputListItemDto] })
  recentOutputs!: OutputListItemDto[];
}
